Optimal. Leaf size=71 \[ -\frac{a^2 \sqrt{c+d x}}{c x}-\frac{a (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{c^{3/2}}+\frac{2 b^2 \sqrt{c+d x}}{d} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.133403, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2 \[ -\frac{a^2 \sqrt{c+d x}}{c x}-\frac{a (4 b c-a d) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{c^{3/2}}+\frac{2 b^2 \sqrt{c+d x}}{d} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^2/(x^2*Sqrt[c + d*x]),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 12.6624, size = 60, normalized size = 0.85 \[ - \frac{a^{2} \sqrt{c + d x}}{c x} + \frac{a \left (a d - 4 b c\right ) \operatorname{atanh}{\left (\frac{\sqrt{c + d x}}{\sqrt{c}} \right )}}{c^{\frac{3}{2}}} + \frac{2 b^{2} \sqrt{c + d x}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**2/x**2/(d*x+c)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.105209, size = 62, normalized size = 0.87 \[ \sqrt{c+d x} \left (\frac{2 b^2}{d}-\frac{a^2}{c x}\right )+\frac{a (a d-4 b c) \tanh ^{-1}\left (\frac{\sqrt{c+d x}}{\sqrt{c}}\right )}{c^{3/2}} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^2/(x^2*Sqrt[c + d*x]),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.018, size = 63, normalized size = 0.9 \[ 2\,{\frac{1}{d} \left ({b}^{2}\sqrt{dx+c}+ad \left ( -1/2\,{\frac{a\sqrt{dx+c}}{cx}}+1/2\,{\frac{ad-4\,bc}{{c}^{3/2}}{\it Artanh} \left ({\frac{\sqrt{dx+c}}{\sqrt{c}}} \right ) } \right ) \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^2/x^2/(d*x+c)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/(sqrt(d*x + c)*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.231276, size = 1, normalized size = 0.01 \[ \left [-\frac{{\left (4 \, a b c d - a^{2} d^{2}\right )} x \log \left (\frac{{\left (d x + 2 \, c\right )} \sqrt{c} + 2 \, \sqrt{d x + c} c}{x}\right ) - 2 \,{\left (2 \, b^{2} c x - a^{2} d\right )} \sqrt{d x + c} \sqrt{c}}{2 \, c^{\frac{3}{2}} d x}, \frac{{\left (4 \, a b c d - a^{2} d^{2}\right )} x \arctan \left (\frac{c}{\sqrt{d x + c} \sqrt{-c}}\right ) +{\left (2 \, b^{2} c x - a^{2} d\right )} \sqrt{d x + c} \sqrt{-c}}{\sqrt{-c} c d x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/(sqrt(d*x + c)*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 70.9547, size = 192, normalized size = 2.7 \[ - \frac{a^{2} \sqrt{d} \sqrt{\frac{c}{d x} + 1}}{c \sqrt{x}} + \frac{a^{2} d \operatorname{asinh}{\left (\frac{\sqrt{c}}{\sqrt{d} \sqrt{x}} \right )}}{c^{\frac{3}{2}}} + 4 a b \left (\begin{cases} \frac{\operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{c}} \sqrt{c + d x}} \right )}}{c \sqrt{- \frac{1}{c}}} & \text{for}\: - \frac{1}{c} > 0 \\- \frac{\operatorname{acoth}{\left (\frac{1}{\sqrt{c + d x} \sqrt{\frac{1}{c}}} \right )}}{c \sqrt{\frac{1}{c}}} & \text{for}\: - \frac{1}{c} < 0 \wedge \frac{1}{c} < \frac{1}{c + d x} \\- \frac{\operatorname{atanh}{\left (\frac{1}{\sqrt{c + d x} \sqrt{\frac{1}{c}}} \right )}}{c \sqrt{\frac{1}{c}}} & \text{for}\: \frac{1}{c} > \frac{1}{c + d x} \wedge - \frac{1}{c} < 0 \end{cases}\right ) + b^{2} \left (\begin{cases} \frac{x}{\sqrt{c}} & \text{for}\: d = 0 \\\frac{2 \sqrt{c + d x}}{d} & \text{otherwise} \end{cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**2/x**2/(d*x+c)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.215179, size = 100, normalized size = 1.41 \[ \frac{2 \, \sqrt{d x + c} b^{2} - \frac{\sqrt{d x + c} a^{2} d}{c x} + \frac{{\left (4 \, a b c d - a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{d x + c}}{\sqrt{-c}}\right )}{\sqrt{-c} c}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^2/(sqrt(d*x + c)*x^2),x, algorithm="giac")
[Out]